/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package evaluation.ged;

import evaluation.Edge;

/**
 *
 * @author phong
 */
public class EdgeDeletion extends EditOperation {
    
    Edge e;
    
    public EdgeDeletion(Edge e) {
        this.e = e;
    }
    
    public Edge getEdge() {
        return this.e;
    }
    
    @Override
    public double getCost() {
        return 1;
    }
    
    @Override
    public boolean equals(Object o) {
        if (o instanceof EdgeDeletion) {
            return this.e.equals(((EdgeDeletion)o).e);
        }
        return false;
    }
    
    @Override
    public int hashCode() {
        return this.e.hashCode() * 31 + "edgedeletion".hashCode();
    }
    
    @Override
    public String toString() {
        return "Del(" + this.e.toString() + ") with cost " + this.getCost();
    }
}
